package com.xinghen.file;

import com.xinghen.file.meta.PathMeta;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.io.Serializable;
import java.util.Map;

/**
 * @author xinghen
 * @ClassName: FileProperties
 * @Package: com.xinghen.file
 * @Description Config
 * @create 2017-12-08 15:39
 */
@Configuration
@ConfigurationProperties(prefix = "com.xinghen.file.properties")
@Data
public class FileProperties implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 根路径
     */
    private String rootPath;

    /**
     * 文件路径 ( key : pathCode )
     */
    private Map<String, PathMeta> path;

}
